package com.sex.bull.melancholy.service.mybatis.dao;

import com.sex.bull.melancholy.service.mybatis.bean.DetailCustomerProperty;
import com.sex.bull.melancholy.service.mybatis.dao.base.BaseDao;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by LiM on 2017/8/7.
 */
@Service
public class DetailCustomerPropertyDao extends BaseDao {

    /**
     * 批量查询
     * @param list
     * @return
     * @throws Exception
     */
    public List<DetailCustomerProperty> queryByPara(List<DetailCustomerProperty> list) throws Exception{
        return sqlSession.selectList(DetailCustomerProperty.class.getName() + ".queryByPara", list);
    }

    /**
     * 更新属性
     * @param mPara
     * @throws Exception
     */
    public void updataByMap(Map<String, Object> mPara) throws Exception{
         sqlSession.update(DetailCustomerProperty.class.getName() + ".updataByMap", mPara);
    }
}
